import request from '@/utils/request'

// 查询技术基础列表
export function listFoundations(query) {
  return request({
    url: '/system/foundations/list',
    method: 'get',
    params: query
  })
}

// 查询技术基础详细
export function getFoundations(id) {
  return request({
    url: '/system/foundations/' + id,
    method: 'get'
  })
}

// 新增技术基础
export function addFoundations(data) {
  return request({
    url: '/system/foundations',
    method: 'post',
    data: data
  })
}

// 修改技术基础
export function updateFoundations(data) {
  return request({
    url: '/system/foundations',
    method: 'put',
    data: data
  })
}

// 删除技术基础
export function delFoundations(id) {
  return request({
    url: '/system/foundations/' + id,
    method: 'delete'
  })
}
